﻿namespace Microsoft.VisualStudio.TestTools.UnitTesting
{
    using System;

    /// <summary>
    /// Specifies the assembly references to use.
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false)]
    [CLSCompliant(false)]
    public class AssemblyBuilderReferencesAttribute : Attribute
    {
        private readonly string[] assemblyReferences;

        #region Constructors
        /// <summary>
        /// Initializes a new instance of the <see cref="AssemblyBuilderReferencesAttribute"/> class.
        /// </summary>
        /// <param name="assemblyReferences">The assembly to reference.</param>
        public AssemblyBuilderReferencesAttribute(params string[] assemblyReferences)
        {
            this.assemblyReferences = assemblyReferences;
        }
        #endregion Constructors

        #region Public Properties
        /// <summary>
        /// Gets the assembly references.
        /// </summary>
        /// <value>The assembly references.</value>
        public string[] AssemblyReferences
        {
            get { return this.assemblyReferences; }
        }
        #endregion Public Properties
    }
}